#ifndef _CODEPAGE_H_
#define _CODEPAGE_H_

struct s_font_cp {
	unsigned short codepage;
	unsigned short (*getc)(const char *str, int *len); //get unicode from the str
};

struct s_font_cp cp_win1250 ;
struct s_font_cp cp_win1251 ;
struct s_font_cp cp_win1252 ;
struct s_font_cp cp_win1254 ;
struct s_font_cp cp_win1257 ;
struct s_font_cp cp_65001 ;

extern struct s_font_cp * font_cp[] ;

unsigned short codepage_getc(const char *str, int *len);

#endif
